// 首页
import request from "@/utils/request";

type Result<T = undefined> = {
    code: string,
    message: string,
    data: [{
        bannerid: string,
        img: string,
        alt:T
    }]
}
// 查看轮播图
export function viewBanner() {
    return request.get<any, Result>('/banner/list', {
        params: {
        }
    })
}
//  获取用户信息
export function userInfo(userid:string){
    return request.get('/user/info',{
        params:{
            userid
        }
    })
}